-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try to make etc/ci_test.sh
work
#1033
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1033 +/- ##
==========================================
- Coverage 76.49% 74.45% -2.04%
==========================================
Files 51 55 +4
Lines 4191 4534 +343
==========================================
+ Hits 3206 3376 +170
- Misses 985 1158 +173
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!!
This comment was marked as outdated.
This comment was marked as outdated.
etc/ci_test.sh
Outdated
@@ -9,17 +9,18 @@ mkdir -p coverage | |||
# | |||
cd pkg/JuliaInterface | |||
pwd | |||
# Force recompilation of JuliaInterface with coverage instrumentation | |||
CFLAGS=--coverage FORCE_JULIAINTERFACE_COMPILATION=true ${GAP} --nointeract |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this CFLAGS variable does not get forwarded to the process that compiles JuliaInterface.
Line 221 in a8674da
withenv("CFLAGS" => JULIA_CPPFLAGS, |
Instead, this just uses the output of
GAP.Setup.cflags()
as the CFLAGS
environment var. So this CFLAGS var here does not do anything.
@ThomasBreuer noticed that gcov reports 0% coverage for all files, so something was off. As mentioned in #1033 (comment), the |
Thank you @lgoettgens ! |
etc/ci_test.sh
gets called as part of the testsuite of GAP.jl.Already for a long time,
gcov
prints some errors in CI, see e.g. https://github.com/oscar-system/GAP.jl/actions/runs/10700854945/job/29665504736#step:6:468. On newer gcov version (my system uses gcc/gcov 14.2.1, while the ubuntu CI runners use 11.2.0), instead of just printing the error, this returns a non-zero exit code and thus aborts the script.This PR contains three small changes in the hopes to fix this:
Alternatively, we could just remove the two lines regarding
gcov
frometc/ci_test.sh
completely.cc @ThomasBreuer